package com.example.mediaplayer.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/** 
 * @author 作者ylh  E-mail:504367857@qq.com
 * @version 创建时间：2015-1-18 下午3:29:41 
 * 类说明 
 */
public class DbOpenHelper extends SQLiteOpenHelper{
	
	private static String name = "file.db";
	private static int version = 1;

	public DbOpenHelper(Context context) {
		super(context, name, null, version);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		// TODO Auto-generated method stub
		String sql = "Create Table FileTable(id integer primary key autoincrement,filePath varchar(50))";
		db.execSQL(sql);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
		
	}

}
